package Shuffle;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class TestCard {

    public static void main(String[] args) {
        ArrayList<Integer> arrayList=new ArrayList<>();
        arrayList.add(10);
        arrayList.add(4);
        arrayList.add(1);
        arrayList.add(50);

        Collections.sort(arrayList);
    }
    public static void main1(String[] args) {
        Cards cards=new Cards();
        List<Card> cardsList= cards.buyCard();

        System.out.println("洗牌");
        cards.shuffle(cardsList);
        System.out.println(cardsList);

        System.out.println("抓牌");
        cards.drawCard(cardsList);

        System.out.println("剩下的牌");
        System.out.println(cardsList);


    }


}
